package com.yequan.jvm;

/**
 * @author : Administrator
 * @date : 2020/7/4
 */
public class JvmArgsTest {

    public static void main(String[] args) throws InterruptedException {
        String key = System.getProperty("key");
        System.out.println("输入参数: " + key);
        if ("1".equals(key)) {
            System.out.println("hello world");
        } else {
            System.out.println("hello java");
        }
        Thread.sleep(50000);
    }

}
